home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 006 / javlrn2.arc / NUMBERS.CAS (.txt) < prev    next >
Encoding:
Javelin Case Study  |  1985-10-01  |  46.9 KB  |  1,069 lines

  1. NUMBERS
  2. ~0Copyright (c) 1985 Javelin Software Corporation.
  3. S/N   0412345679
  4. Press [F1] for Help.
  5. Version E4.69
  6. Diagram view
  7. Table view
  8. READY
  9. $ $}$&ENTERING DATA AND FORMATTING NUMBERS}
  10. $In this case study, we'll
  11. $explore the different ways of
  12. $entering data and
  13. $formatting numbers in Javelin.
  14. $- Press [Space] to continue -
  15. $- or press [F1] for Help -
  16.  228K
  17. }$$There are a variety of ways to enter
  18. ~$values for a variable in Javelin. In
  19. ~"this case study you'll enter data:
  20.  in the Chart view
  21.  in the Table view
  22.  in the Worksheet view
  23.  with a Formula
  24. ~%This case study also describes how to
  25. format numbers in Javelin.
  26. Formatting a number affects how
  27. ~%Javelin displays that number, but not
  28. the number itself.
  29. You can format a number with a
  30. ~!percent sign (%), with commas, or
  31. ~%with a currency sign, such as $ or 
  32. ~#You can also format a number with a
  33. ~"specific number of decimal places.
  34. %EXAMPLE~
  35. : The Coe Motor Company
  36. You are an analyst for Coe, a
  37. ~"  small British motor company. Coe
  38. ~%  has been selling cars in the United
  39. ~%  Kingdom for the past few years, but
  40. ~!just introduced their car line to
  41. ~#  the American market in September.
  42. ~#  Based on the sales in the USA and
  43. ~#  the UK, it's your job to find the
  44.   percentage of the Coe Motor
  45. ~!Company's sales in the US market.
  46.  Start building the model by choosing the model
  47.  settings for this problem.
  48.  Use the Define Settings command:
  49.  $ $ $
  50. & $/' $D' $S'
  51.  DEFINE }
  52.   CLEAR
  53. WINDOW   PRINT
  54. MENU 
  55. ~MDefine variable, building block, worksheet, graph, macro, time pd., settings.
  56.  Settings
  57.  Configuration  
  58.  Printer
  59.  Time period
  60.  Macro ...
  61.  Graph
  62.  Worksheet
  63.  Building block 
  64.  Variable
  65.  DEFINE
  66. ~@Create a variable or change its name, period, or other settings.
  67. ~KChange model default settings, including dates, default period, and format.
  68.  FY1985 ends {31 Dec
  69.  Year
  70.  Quarter
  71.  Month
  72.  Week
  73.  Yen (
  74.  Pound (
  75.  Constant
  76.  Dollar ($)
  77. "Default Period
  78.  Commas
  79.  Percent
  80.  End date {September 1986}
  81.  Fixed decimal
  82.  Begin date {October 1985}
  83.  Automatic
  84. "Default Time Span
  85. "Format
  86.  Name {}
  87.  Decimal places {}
  88. "Model Settings
  89. ~7To save settings and leave settings sheet, press [Esc].
  90. Begin by setting the time span.
  91. ~.Set the begin date to September 1985, when the
  92. ~ 1986 model cars are introduced: 
  93. 'Sep85
  94. Begin date:
  95. ~7To save settings and leave settings sheet, press [Esc].
  96. "September 1985}
  97. Set the end date to March 1986:
  98. 'Mar86
  99. ~    End date:
  100. ~7To save settings and leave settings sheet, press [Esc].
  101. "March 1986}
  102. ~0Next, set the model format to Pound. This format
  103. ~2displays a pound sign (
  104. ) in front of all numbers.
  105. $Press:
  106. ~-Look at the setting for decimal places, above
  107. format.
  108. ~1When you choose a currency setting such as Pound,
  109. ~2you automatically set the number of decimal places
  110. $to two.
  111. ~3Now that you have selected the default settings for
  112. ~3the model, press [Esc] to leave the settings sheet:
  113. '[Esc]
  114. Diagram view
  115. Diagram view
  116. READY
  117.  An input variable is a variable
  118.  for which you enter data.
  119.  These are the input variables in   
  120.  this model:
  121.  US Sales in Dollars
  122. Table v~
  123.  UK Sales in Pounds
  124.  Pounds per Dollar
  125. There are also two calculated
  126. variables in this model: 
  127.  US Sales in Pounds, which
  128. measures US sales in pounds.
  129. % of sales in US, which is
  130. the percentage of Coe's sales
  131.   in the USA.
  132. You're ready to begin defining
  133. the variables for this model.
  134. The first variable to define is
  135. %UK Sales in Pounds~
  136. ~!This variable represents revenue,
  137. ~!in millions of pounds, from cars 
  138. sold in the UK each month.
  139. &Entering Data in the Chart View
  140. You can create a new variable
  141. just by viewing it in the Chart
  142. $or Table view.
  143. ~ o view a chart for the variable 
  144. UK Sales in Pounds, type:
  145. & $/' $V' $C'
  146. 'UK Sales in Pounds
  147.  DEFINE }
  148.   CLEAR
  149. WINDOW   PRINT
  150. MENU 
  151. ~MDefine variable, building block, worksheet, graph, macro, time pd., settings.
  152.  Graph
  153.  Macro
  154.  Errors
  155.  Notes
  156.  Worksheet
  157.  Quick graph
  158.  Chart
  159.  Table
  160.  Formulas ...   
  161.  Diagram
  162.  VIEW
  163. Show diagram in current window.
  164. ~$Show bar chart of data for variable.
  165. Variable name:
  166. READY
  167. S O N D J F M A M J J A S O N D
  168. 100  
  169. 120  
  170. UK Sales in Poun
  171. $If you don't set an individual
  172. format for a variable, the
  173. variable uses the format and 
  174. number of decimals that you se
  175. for the entire model.
  176. ~!UK Sales in Pounds will therefore
  177. be displayed with a pound sign
  178. and two decimal places.
  179. Now enter the sales figures for
  180. the first few months.
  181. Sales were 
  182. 73.93 million in
  183. September, 1985. Enter:
  184. '73.93
  185. ~ UK Sales in Pounds = 
  186.  Monthly d
  187. 73.93
  188. To give the chart more detail,
  189. show only one window on the
  190. screen by typing:
  191. & $/' $W' $1'
  192.   DEFINE   CLEAR
  193. VIEW 
  194. WINDOW   PRINT
  195. MENU 
  196. Select view for current window.
  197.  Adjust
  198.  Switch
  199.  2 windows
  200.  1 window
  201.  WINDOW
  202. Show only one window.
  203. Diagram 
  204. READY
  205.  30  
  206. UK Sales in Pounds = 
  207.  Monthly data: September 1985 - September...
  208. 73.93
  209. te that you can see the value
  210. for September in the upper left
  211. ~ corner of the screen, as well as
  212. in the chart.
  213. ~ To enter sales for October, move
  214. $the cursor to October:
  215. ~B UK Sales in Pounds = 
  216.  Monthly data: September 1985 - October... 
  217. Enter 
  218. 77.35 million for sales:
  219. '77.35
  220. 77.35
  221. The time span at
  222. top of the
  223. ~!Chart view shows you have entered
  224. ~ values for two months, September
  225. and October, 1985.
  226. ~!Javelin updates this time span as
  227. ~"you enter values for other months.
  228. values of UK Sales in Pounds
  229. for the remaining months are:
  230.    Nov 
  231. 81.14 million
  232. 82.89 million
  233.    Jan 
  234. 83.97 million
  235.    Feb 
  236. 83.20 million
  237. 83.79 million
  238. When you press [Space], I'
  239. enter these values.
  240. ~;UK Sales in Pounds = 
  241.  Monthly data: September 1985 - Novem
  242. 81.14
  243. 82.89
  244. ~> UK Sales in Pounds = 
  245.  Monthly data: September 1985 - January
  246. 83.97
  247. ~:UK Sales in Pounds = 
  248.  Monthly data: September 1985 - Febr
  249. March 1986 
  250. 83.79
  251. There are several benefits to
  252. ~ using the Chart view. With this 
  253. view you can:
  254.  see the data in graphic form
  255. at a glance
  256.  see the actual value at any
  257. period by moving the cursor
  258. there
  259.  quickly enter estimated data
  260. ~ The second variable to define is
  261. %US Sales in Dollars~
  262. . As its name
  263. suggests, this variable is in
  264. dollars, so it should have a
  265. dollar format.
  266. ~!To set an individual format for a
  267. ~!variable, use the Define Variable
  268. command. This command shows you
  269. the Variable settings sheet for
  270. the variable you specify.
  271. o see the settings sheet for
  272. , type:
  273.      $ $
  274. & $/' $D' $V'
  275.   DEFINE   CLEAR
  276.  WINDOW }
  277.   PRINT
  278. MENU 
  279. Set up or change windows.
  280.  Settings
  281.  Configuration  
  282.  Printer
  283.  Time period
  284.  Macro ...
  285.  Graph
  286.  Worksheet
  287.  Building block 
  288.  Variable
  289.  DEFINE
  290. ~KChange model default settings, including dates, default period, and format.
  291. ~@Create a variable or change its name, period, or other settings.
  292. UK Sales in Pounds = 
  293.  Monthly data: September 1985 - March 1986 
  294. ~#Variable name (UK Sales in Pounds):
  295. Enter the variable name:
  296. 'US Sales in Dollars
  297.  Default
  298.  Unlo
  299.  Guilder (fl)
  300.  Deutsche Mark (DM)
  301.  Swiss Franc (SFr)
  302.  Franc (F)
  303.  Yen (
  304.  Pound (
  305.  Year
  306.  Dollar ($)
  307.  Quar
  308.  Commas
  309.  Mont
  310.  Percent
  311.  Week
  312.  Fixed decimal
  313.  Day 
  314.  Automatic
  315.  Cons
  316. "Format
  317.  Decimal places {}
  318.  End date {}
  319.  Begin date {}
  320.  Name {US Sales in Dollars}  
  321.  "}    "Time Span
  322. "Variable Settings
  323. ~7To save settings and leave settings sheet, press [Esc].
  324. To display this variable with a
  325. dollar format, change the
  326. from the default model setting
  327. ~!(Pound, in this model) to Dollar.
  328. Move to the dollar format:
  329. Then select
  330. %Dollar~
  331. The values for US Sales in
  332. ~ Dollars are now formatted with a
  333. dollar sign and two decimals.
  334. To leave the settings sheet for
  335. US Sales in Dollars, press:
  336. '[Esc]
  337. S O N D J F 
  338. A M J J A S O N D
  339.    0  
  340.    5  
  341.   10  
  342.   15  
  343.   20  
  344.   25  
  345.   30  
  346.   35  
  347.   40  
  348.   45  
  349.   50  
  350.   55  
  351.   60  
  352.   65  
  353.   70  
  354.   75  
  355.   80  
  356.   85  
  357.   90  
  358. UK Sales in Pounds = 
  359.  Monthly data: September 1985 - March 1986 
  360. 110  
  361. 130  
  362. 150  
  363. ~#US Sales in Dollars = 
  364.  UNDEFINED 
  365. READY
  366. &Entering Data in the Table View
  367. After defining US Sales in
  368. Dollars, you see the Chart view
  369. for the variable.
  370. ~ Instead of using the Chart view,
  371. $we'll enter in the values for
  372. ~ US Sales in Dollars in the Table
  373. view.
  374. $First, select the Table view:
  375.      $ $
  376. & $/' $V' $T'
  377.  DEFINE }
  378.   CLEAR
  379. WINDOW   PRINT
  380. MENU 
  381. ~O  Define variable, building block, worksheet, graph, macro, time pd., settings.
  382.  Graph
  383.  Macro
  384.  Errors
  385.  Notes
  386.  Worksheet
  387.  Quick graph
  388.  Chart
  389.  Table
  390.  Formulas ...   
  391.  Diagram
  392.  VIEW
  393. ~$Show bar chart of data for variable.
  394. ~"  Show table of data for variable.
  395. US Sales in Dollars = 
  396.  UNDEFINED 
  397. ~$Variable name (US Sales in Dollars):
  398. ~ Then use the SPELL key to select
  399. US Sales in Dollars:
  400. & $U'S' $}
  401. WAIT 
  402. Sales in Dollars
  403. MENU 
  404. READY
  405. Apr 1987 
  406.   Dec 1988 
  407. Mar 1987 
  408.   Nov 1988 
  409. Feb 1987 
  410.   Oct 1988 
  411. Jan 1987 
  412.   Sep 1988 
  413. Dec 1986 
  414.   Aug 1988 
  415. Nov 1986 
  416.   Jul 1988 
  417. Oct 1986 
  418.   Jun 1988 
  419. Sep 1986 
  420.   May 1988 
  421. Aug 1986 
  422.   Apr 1988 
  423. Jul 1986 
  424.   Mar 1988 
  425. Jun 1986 
  426.   Feb 1988 
  427. May 1986 
  428.   Jan 1988 
  429. Apr 1986 
  430.   Dec 1987 
  431. Mar 1986 
  432.   Nov 1987 
  433. Feb 1986 
  434.   Oct 1987 
  435. Jan 1986 
  436.   Sep 1987 
  437.   May 1989 
  438. Dec 1985 
  439.   Aug 1987 
  440.   Apr 1989 
  441. Nov 1985 
  442.   Jul 1987 
  443.   Mar 1989 
  444. Oct 1985 
  445.   Jun 1987 
  446.   Feb 1989 
  447. Sep 1985 
  448.   May 1987 
  449.   Jan 1989 
  450. US Sales in Dollars = 
  451.  UNDEFINED 
  452. ~ Coe's US sales for September and
  453. October 1985 are:
  454. $ Sep 
  455. $8 million
  456.  $8.24 million
  457. Enter these sales figures:
  458. '8.24
  459. ~GUS Sales in Dollars = 
  460.  Monthly data: September 1985 - September 1985 
  461. .. $8.
  462. ~G US Sales in Dollars = 
  463.  Monthly data: September 1985 - October 1985 
  464. .. $8.24
  465. ~ Press [Space] and I'll enter the
  466. ~#remaining values for this variable.
  467. November 1985 
  468. . $11.
  469. . $13.92
  470. 13.92
  471. January 1986 
  472. . $18.01
  473. 18.01
  474. February 1986 
  475. . $24.
  476. ~D US Sales in Dollars = 
  477.  Monthly data: September 1985 - March 1986 
  478. . $28.
  479. Suppose you entered an extra
  480. ~!value in the table by mistake, or
  481. inadvertently omitted the data
  482. for a month.
  483. Instead of retyping the entire
  484. table from the mistake on, you
  485. can easily correct these errors
  486. }    $with the }
  487. %[Ins]~
  488. %[Del]~
  489.  keys.
  490. (The [Ins] and [Del] keys are
  491. below the 
  492.  key, at the lower
  493. ight of the keyboard.)
  494. Let's say the value entered for
  495. December, $13.92 million,
  496. ~ shouldn't have been on the list.
  497. ~!The actual value for December was
  498. then entered for January, and a
  499. subsequent values were entered
  500. for the wrong months.
  501. Instead of retyping the table
  502. from the mistake on, use the 
  503. [Del] key to correct the error.
  504. ~!Move the cursor to the month with
  505. the unwanted value:
  506. Press the [Del] key to delete
  507. the value for December:
  508. '[Del]
  509. ~FUS Sales in Dollars = 
  510.  Monthly data: September 1985 - February 1986 
  511. The value 13.92 disappears, and
  512. all subsequent values shift up
  513. one month.
  514. $Similarly, if you omit a value
  515. from the table, you can insert
  516. ~!the value by using the [Ins] key.
  517. To insert a value for December,
  518. $press [Ins]:
  519. '[Ins]
  520. . $28.
  521. ~D US Sales in Dollars = 
  522.  Monthly data: September 1985 - March 1986 
  523. The January value of 18.01 is 
  524. inserted for December, and a
  525. ~ subsequent values shift down one
  526. month.
  527. ~!Type the correct number in place 
  528. of the error for December:
  529. '13.92
  530. 13.92
  531. values for US Sales in Dollars
  532. are correct again.
  533. ~ The sales figures for April just
  534. came in. Coe's revenues from
  535. sales in the USA in April are
  536. $37.06 million.
  537. $Let's add the April value for
  538. US Sales in Dollars.
  539. ~"Move the cursor to the row of the 
  540. table for April 1986:
  541. '[End]
  542. ~ Now type in the value for April,
  543. $37.06 million:
  544. '37.06
  545. April
  546. . $37.06
  547. 37.06
  548. You now have data for two
  549. variables:
  550.  UK Sales in Pounds
  551.  US Sales in Dollars
  552. The first variable is in pounds
  553. and the second is in dollars.
  554. }!$Before you can compare the values
  555. ~!of these variables, however, they
  556. must be in the same currency.
  557.  $ $}
  558. &Entering Data with a Formula
  559. We need a formula that converts
  560. ~!dollars into pounds at a constant
  561. rate. (For this case study,
  562. ~ assume that there are .77 pounds
  563. to the dollar.)
  564. There is a third way to enter
  565. data -- with a formula.
  566. } $Let's define the conversion rate
  567. with a variable named
  568. %Pounds per
  569. %Dollar~
  570. . We'll give this variable
  571. a fixed value of .77 pounds per
  572. dollar.
  573. To define Pounds per Dollar and
  574. ~ give it a constant value of .77,
  575. enter the following formula: 
  576. 'Pounds per Dollar=.
  577. 7'7' $}
  578. WAIT 
  579. READY
  580. ~    CONSTANT 
  581. Pounds per Dollar=0.77
  582. ~ The Table view shows that Pounds
  583. per Dollar is a constant.
  584. } $To format Pounds per Dollar with
  585. decimal format, type:
  586. & $/' $D' $V' $}
  587.   DEFINE   CLEAR
  588. VIEW 
  589. WINDOW   PRINT
  590. MENU 
  591. Select view for current window.
  592.  Settings
  593.  Configuration  
  594.  Printer
  595.  Time period
  596.  Macro ...
  597.  Graph
  598.  Worksheet
  599.  Building block 
  600.  Variable
  601.  DEFINE
  602. ~@Create a variable or change its name, period, or other settings.
  603. CONSTANT 
  604. Pounds per Dollar=0.77
  605. ~"Variable name (Pounds per Dollar):
  606.  Default
  607.  Unlo
  608.  Guilder (fl)
  609.  Deutsche Mark (DM)
  610.  Swiss Franc (SFr)
  611.  Franc (F)
  612.  Yen (
  613.  Pound (
  614.  Year
  615.  Dollar ($)
  616.  Quar
  617.  Commas
  618.  Mont
  619.  Percent
  620.  Week
  621.  Fixed decimal
  622.  Day 
  623.  Automatic
  624.  Cons
  625. "Format
  626.  Decimal places {}
  627.  End date {}
  628.  Begin date {}
  629.  Name {Pounds per Dollar}
  630.  "}    "Time Span
  631. "Variable Settings
  632. ~7To save settings and leave settings sheet, press [Esc].
  633. ~!Press [Esc] to leave the settings
  634. sheet for the variable:
  635. '[Esc]
  636. TANT 
  637. 0.77 
  638. Pounds per Dollar=0.77
  639. READY
  640. Now that the conversion rate is
  641. ~ part of the model, you can enter
  642. ~ a formula that converts US Sales
  643. from dollars to pounds.
  644. $Press [Space] and I'll enter a
  645. }!$formula that defines the variable
  646. %US Sales in Pounds~
  647. NOT YET CALCULATED
  648. ~8US Sales in Pounds=US Sales in Dollars*Pounds per Dollar
  649. ~!Calculate the values for US Sales
  650. in Pounds:
  651. '[F9]
  652. WAIT 
  653. ~    Apr 1987 
  654.   Dec 1988 
  655. ~    Mar 1987 
  656.   Nov 1988 
  657. ~    Feb 1987 
  658.   Oct 1988 
  659. ~    Jan 1987 
  660.   Sep 1988 
  661. ~    Dec 1986 
  662.   Aug 1988 
  663. ~    Nov 1986 
  664.   Jul 1988 
  665. ~    Oct 1986 
  666.   Jun 1988 
  667. ~    Sep 1986 
  668.   May 1988 
  669. ~    Aug 1986 
  670.   Apr 1988 
  671. ~    Jul 1986 
  672.   Mar 1988 
  673. ~    Jun 1986 
  674.   Feb 1988 
  675. ~    May 1986 
  676.   Jan 1988 
  677. ~    Apr 1986 
  678. 28.54
  679.   Dec 1987 
  680. ~    Mar 1986 
  681. 22.07
  682.   Nov 1987 
  683.     ~    Feb 1986 
  684. 18.56
  685.   Oct 1987 
  686. ~    Jan 1986 
  687. 13.87
  688.   Sep 1987 
  689.   May 1989 
  690. ~    Dec 1985 
  691. 10.72
  692.   Aug 1987 
  693.   Apr 1989 
  694. ~    Nov 1985 
  695.   Jul 1987 
  696.   Mar 1989 
  697. ~    Oct 1985 
  698.   Jun 1987 
  699.   Feb 1989 
  700. ~    Sep 1985 
  701.   May 1987 
  702.   Jan 1989 
  703. READY
  704. The default format (
  705. appropriate for this variable,
  706. so there's no need to set an
  707. individual format.
  708. So far you have entered numbers
  709. three ways:
  710.  in the Chart view
  711.  in the Table view
  712.  with a formula
  713.   Jun 1989 
  714.   Jul 1989 
  715.   Aug 1989 
  716.   Sep 1989 
  717.   Oct 1989 
  718.   Nov 1989 
  719.  $}#&Entering Data in the Worksheet View
  720.  The final way to enter numbers in a model is on a
  721.  worksheet. Let's create a worksheet for showing the
  722.  values of the variables in this case study. Type:
  723.  $ $ $
  724. & $/' $V' $W'
  725.  DEFINE }
  726.   CLEAR
  727. WINDOW   PRINT
  728. MENU 
  729. ~O  Define variable, building block, worksheet, graph, macro, time pd., settings.
  730.  Graph
  731.  Macro
  732.  Errors
  733.  Notes
  734.  Worksheet
  735.  Quick graph
  736.  Chart
  737.  Table
  738.  Formulas ...   
  739.  Diagram
  740.  VIEW
  741. ~ Show table of data for variable.
  742. ~#Show a worksheet in current window.
  743.   Mar 19
  744.   Feb 19
  745.   Jan 19
  746. 28.54
  747.   Dec 19
  748. 22.07
  749.   Nov 19
  750. 18.56
  751.   Oct 19
  752. 13.87
  753.   Sep 19
  754. 10.72
  755.   Aug 19
  756.   Jul 19
  757.   Jun 19
  758. 6.16 
  759.   May 19
  760. US Sales in Pounds=US Sales in Dollars*Pounds per Dollar
  761. Worksheet name:
  762. ~3Javelin now prompts you for a worksheet name at the
  763. ~4top of the screen. You can give a worksheet any name
  764. ~    you like.
  765. ~*Press [Space] and I'll name the worksheet.
  766. WAIT 
  767. READY
  768. SALES (in millions of pounds)
  769. ~/Press [Space] again and I'll enter the names of
  770. ~.variables in the left border of the worksheet.
  771. WAIT 
  772. Pounds per Dollar
  773. READY
  774. Pounds per Dollar
  775. Pounds per Dollar
  776. US Sales in Pounds
  777. US Sales in Pounds
  778. WAIT 
  779. Sales in Pounds
  780. READY
  781. UK Sales in Pounds
  782. UK Sales in Pounds
  783. ~2Now we only need to add the dates to the worksheet
  784. in order to see the data.
  785. ~3Enter September 1985 for the first month to show on
  786. the worksheet. Type:
  787. 'Sep85
  788. 73.93
  789. Sep 1985
  790. ~0tice that Javelin fills in the values for Sep 85
  791. ~-as soon as you enter the month in the border.
  792. ~1This is because you entered these values earlier 
  793. ~1y are part of Javelin's central information base.
  794. ~0Pressing 
  795.  automatically enters the next month
  796. in the top border.
  797. ~3Add the next six months by pressing 
  798.  six times: 
  799. 77.35
  800. Oct 1985
  801. 81.14
  802. Nov 1985
  803. 82.89
  804. 10.72
  805. Dec 1985
  806. 83.97
  807. 13.87
  808. Jan 1986
  809. 83.20
  810. 18.56
  811. Feb 1986
  812. 81.14
  813. 82.89
  814. 83.97
  815. 10.72
  816. 13.87
  817. 18.56
  818. 6  Feb
  819. 83.79
  820. 22.07
  821. Mar 1986
  822. 81.14
  823. 82.89
  824. 83.97
  825. 10.72
  826. 13.87
  827. 18.56
  828. 22.07
  829. 6  Feb
  830. ~2The original problem was to find the percentage of
  831. Coe's sales in the USA.
  832. ~,To find the solution, create a new variable,
  833. %% of Sales in US~
  834. . We'll define this variable in
  835. }4$a formula that divides US Sales in Pounds by the sum
  836. ~-of UK Sales in Pounds and US Sales in Pounds.
  837. ~,When you're on a worksheet, you can define a
  838. ~0variable just by typing its name in a border and
  839. ~3then entering a value or a formula for the variable
  840. in the body of the worksheet.
  841. ~2Press [Space] and I'll move the cursor back to the
  842. left border.
  843. 5  Dec
  844. 5  Jan
  845. Feb 1986
  846. 10.72
  847. 18.56
  848. 73.93
  849. 77.35
  850. 81.14
  851. 82.89
  852. 83.20
  853. Pounds per Dollar
  854. US Sales in Pounds
  855. ~#Enter the name of the new variable,
  856. %% of Sales in US~
  857. in the left border:
  858. '% of Sales in US
  859. % of Sales in US
  860. % of Sales in US:
  861. ~/The expression that defines % of Sales in US is
  862. ~(US Sales in Pounds/(UK Sales in Pounds +
  863. US Sales in Pounds)
  864. ~1Let's use Javelin's pointing feature to write the
  865. expression.
  866. Press the POINT key, [F4]:
  867. '[F4]
  868. % of Sales in US:
  869. POINT
  870. % of Sales in US
  871. ~1Then point to the formula for US Sales in Pounds:
  872. UK Sales in Pounds
  873. US Sales in Pounds
  874. ~3Notice that Javelin copies the variable to the edit
  875. ~*line when you point to it with the cursor.
  876. ~1We'll divide US Sales in Pounds by the sum of two
  877. ~!variables, so type the following:
  878. & $/' $('
  879. ~,Point to the formula for UK Sales in Pounds:
  880. UK Sales in Pounds
  881. ~.And add US Sales in Pounds to the denominator:
  882. & $+' $
  883. US Sales in Pounds
  884. ~,Finally, close the parentheses and enter the
  885. expression:
  886. & $)' $}
  887. READY
  888. #CALC
  889. #CALC
  890. #CALC
  891. #CALC
  892. #CALC
  893. #CALC
  894. ~L% of Sales in US: US Sales in Pounds/(UK Sales in Pounds+US Sales in Pounds)
  895. ~3Now let's calculate the model to see the values for
  896. % of Sales in US:
  897. '[F9]
  898. WAIT 
  899. READY
  900. ~3The values for % of Sales in US would be easier to 
  901. ~$read if they were in percent format.
  902. }2$In addition to formatting the model and individual
  903. ~4variables, you can also format areas of a worksheet.
  904. You can format:
  905.  $~- 
  906.  an entire worksheet   
  907.  a worksheet column
  908.  a worksheet row
  909.  a worksheet ce
  910. ~1A worksheet format affects the display of numbers
  911. ~&only on the worksheet where it is set.
  912. ~4To format the row containing % of Sales in US with a
  913. ~3percent sign and one decimal, first move the cursor
  914. to the left border:
  915. ~$Next, use the *Format command. Type:
  916.      $ $
  917. & $/' $*' $F'
  918.   DEFINE   CLEAR
  919. WINDOW   PRINT
  920.  *WORKSHEET 
  921. MENU 
  922. ~"Commands specific to current view.
  923.  Format
  924.  Sort ...
  925.  Exception
  926.  Name change
  927.  Import file .. 
  928.  Range ...
  929.  Border ...
  930.  Data copy
  931.  Copy
  932.  *WORKSHEET
  933. ~"  Change width of current column. 
  934. View or change formats.
  935. 83.97
  936. 13.87
  937. -85  Jan 1986  Feb 
  938. SALES (in millions of pounds)
  939. READY
  940.  Yen (
  941.  Pound (
  942.  Dollar ($)
  943.  Commas
  944.  Percent
  945.  Fixed decimal
  946.  Automatic
  947. "Format
  948.  Decimal places {}
  949. "Format Settings
  950. ~7To save settings and leave settings sheet, press [Esc].
  951. ~)Enter 1 for the number of decimal places:
  952. & $1' $}
  953. Decimal places:
  954. ~7To save settings and leave settings sheet, press [Esc].
  955. ~%Choose Percent for the format. Press:
  956. ~.Finally, leave the settings sheet by pressing:
  957. '[Esc]
  958. 73.93
  959. 77.35
  960. 81.14
  961. 82.89
  962. 10.72
  963.    0.77
  964. }%-ep 1985  Oct 1985  Nov 1985  Dec 1985
  965. SALES (in millions of pounds)
  966.   7.7%
  967.   7.6%
  968.  10.1%
  969.  11.5%
  970.  14.2%
  971.  18.2%
  972. % of Sales in US
  973. ~4The % format is attached to that specific row of the
  974. ~#worksheet, and not to the variable.
  975. ~1By looking at the values of % of Sales in US, you
  976. ~1can see that the Coe Motor Company started out by
  977. ~3selling 7.7% of their cars in the USA in September.
  978. ~!o see the values for March, type:
  979. '[End]
  980. ~)End: Press arrow key to select direction.
  981. WAIT 
  982. 6  Feb
  983. 10.72
  984. 13.87
  985. 18.56
  986. 22.07
  987. 81.14
  988. 82.89
  989. 83.97
  990. READY
  991. % of Sales in US
  992. ~<: US Sales in Pounds/(UK Sales in Pounds+US Sales in Pounds)
  993. ~3By March 1986, Coe's percentage of sales in the USA
  994. increased to 20.8%.
  995. ~4We still need to add the April value for UK Sales in
  996. $Pounds.
  997. ~3Let's complete the sales figures for April 1986 on 
  998. this worksheet.
  999. ~2Move to the right of March 1986 in the top border:
  1000. '[End]
  1001. 81.14
  1002. 82.89
  1003. 83.97
  1004. 10.72
  1005. 13.87
  1006. 18.56
  1007. 22.07
  1008. 6  Feb
  1009. ~)End: Press arrow key to select direction.
  1010. WAIT 
  1011. READY
  1012. ~/To add the next month (April 1986), just press:
  1013. 28.54
  1014. Apr 1986
  1015. 83.97
  1016. 10.72
  1017. 13.87
  1018. 18.56
  1019. 22.07
  1020. 28.54
  1021. 6  Feb
  1022. ~1Pounds per Dollar has a constant value of .77, so
  1023. }1$it's shown in the column for April automatically.
  1024. ~/April's value for US Sales in Pounds is already
  1025. ~2calculated, so it is also displayed automatically.
  1026. ~3To enter the value for UK Sales in Pounds for April
  1027. ~4on the worksheet, move the cursor to the cell at the
  1028. ~0ntersection of April 1986 and UK Sales in Pounds
  1029. and enter 85.48:
  1030. '85.48
  1031. Apr 1986
  1032. Pounds per Dollar: 0.
  1033. ~9US Sales in Pounds: US Sales in Dollars*Pounds per Dollar
  1034.  @ April 1986:
  1035. ~ UK Sales in Pounds @ April 1986:
  1036. 85.48
  1037. ~&UK Sales in Pounds @ April 1986: 85.48
  1038. ~)Now calculate % of Sales in US for April:
  1039. '[F9]
  1040. WAIT 
  1041. 25.0%
  1042. READY
  1043. ~3The worksheet shows April's value for % of Sales in
  1044. ~2US. The Coe Motor Company's US sales jumped to 25%
  1045. in April, 1986.
  1046. &Summary
  1047.  In this case study:
  1048.  You entered numbers in the Chart view
  1049.    and the Table view, and with a formula.
  1050.  You formatted these numbers as needed.
  1051.  You then created}
  1052. $ a worksheet that showed
  1053. ~(the model's variables, and formatted the
  1054.   numbers on the worksheet.
  1055. a formula on the worksheet
  1056. ~)that calculated the % of Sales in the US.
  1057. ~*Finally, you entered another month's sales
  1058. ~"figures directly on the worksheet.
  1059. Related case studies:
  1060. %The Javelin Worksheet~
  1061.  shows you some ways
  1062. ~ to use Javelin's Worksheet view.
  1063. }#%Importing Data into a Javelin Model~
  1064.  covers 
  1065. ~.three ways to import information into a model.
  1066. %Graphing with Javelin~
  1067.  introduces you to
  1068. using Javelin's graphs.
  1069.